//
//  GameDetailApi.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2022/1/6.
//

#import "GameDetailApi.h"

@implementation GameDetailApi
{
    NSString *_detailId;
}

- (instancetype)initWithDetailId:(NSString *)detailId
{
    self = [super init];
    if (self) {
        _detailId = detailId;
    }
    return self;
}

- (NSString *)requestUrl {
    
    return [NSString stringWithFormat:@"ios/game-detail/selectById/%@", _detailId];
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodGET;
}

- (id)requestArgument {
    
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    
    params[@"id"] = _detailId;
    
    return params;
}

@end
